#!/bin/sh

check()
{
echo $1 
PID=`ps aux | grep $1 | grep ebin | awk '{print $2}'`
if [ "$PID" -gt 0 ] ; then
	echo "$1 pid:$PID==================节点正常==================="
	return 0
else 
	echo "$1===================节点启动失败=============="	
	return 1
fi
}


check dbm
#check gateway
check world
#check scene_ctr
#check agent_ctr
check http

